package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SelfServiceMiniProgramSettingsMapper;
import com.ruoyi.system.domain.SelfServiceMiniProgramSettings;
import com.ruoyi.system.service.ISelfServiceMiniProgramSettingsService;

/**
 * 自助小程序设置(含联系方式和分时段预订)Service业务层处理
 *
 * @author ruoyi
 * @date 2025-05-20
 */
@Service
public class SelfServiceMiniProgramSettingsServiceImpl implements ISelfServiceMiniProgramSettingsService
{
    @Autowired
    private SelfServiceMiniProgramSettingsMapper selfServiceMiniProgramSettingsMapper;

    /**
     * 通过id查询自助小程序设置
     *
     * @param id 自助小程序设置(含联系方式和分时段预订)主键
     * @return 自助小程序设置(含联系方式和分时段预订)
     */
    @Override
    public SelfServiceMiniProgramSettings selectSelfServiceMiniProgramSettingsById(Long id)
    {
        return selfServiceMiniProgramSettingsMapper.selectSelfServiceMiniProgramSettingsById(id);
    }

    /**
     * 查询自助小程序设置列表
     *
     * @param selfServiceMiniProgramSettings 自助小程序设置(含联系方式和分时段预订)
     * @return 自助小程序设置(含联系方式和分时段预订)
     */
    @Override
    public List<SelfServiceMiniProgramSettings> selectSelfServiceMiniProgramSettingsList(SelfServiceMiniProgramSettings selfServiceMiniProgramSettings)
    {
        return selfServiceMiniProgramSettingsMapper.selectSelfServiceMiniProgramSettingsList(selfServiceMiniProgramSettings);
    }

    /**
     * 新增自助小程序设置
     *
     * @param selfServiceMiniProgramSettings 自助小程序设置(含联系方式和分时段预订)
     * @return 结果
     */
    @Override
    public int insertSelfServiceMiniProgramSettings(SelfServiceMiniProgramSettings selfServiceMiniProgramSettings)
    {
        return selfServiceMiniProgramSettingsMapper.insertSelfServiceMiniProgramSettings(selfServiceMiniProgramSettings);
    }

    /**
     * 修改自助小程序设置
     *
     * @param selfServiceMiniProgramSettings 自助小程序设置(含联系方式和分时段预订)
     * @return 结果
     */
    @Override
    public int updateSelfServiceMiniProgramSettings(SelfServiceMiniProgramSettings selfServiceMiniProgramSettings)
    {
        return selfServiceMiniProgramSettingsMapper.updateSelfServiceMiniProgramSettings(selfServiceMiniProgramSettings);
    }

    /**
     * 通过id批量删除自助小程序设置信息
     *
     * @param ids 需要删除的自助小程序设置(含联系方式和分时段预订)主键
     * @return 结果
     */
    @Override
    public int deleteSelfServiceMiniProgramSettingsByIds(Long[] ids)
    {
        return selfServiceMiniProgramSettingsMapper.deleteSelfServiceMiniProgramSettingsByIds(ids);
    }

    /**
     * 通过id删除自助小程序设置信息
     *
     * @param id 自助小程序设置(含联系方式和分时段预订)主键
     * @return 结果
     */
    @Override
    public int deleteSelfServiceMiniProgramSettingsById(Long id)
    {
        return selfServiceMiniProgramSettingsMapper.deleteSelfServiceMiniProgramSettingsById(id);
    }
}
